<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function show(name,age) {
            if (age >= 18) {
                console.log(name,"：你成年了，可以给你看一些好东西了。")
            } else {
                console.log(name,"：你还为成年，等几年再来。")
            }
        }

        show("袁浩哲",20);
        show("杜名均")
    </script>
</body>
</html>